package com.share.device.repository;

import com.share.device.domain.StationLocation;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

//spring boot整合MongoDB 泛型：存储的数据的字段  ID值的类型 交给IOC管理
@Repository
public interface StationLocationRepository extends MongoRepository<StationLocation,String> {

    //根据站点 id获取
    StationLocation getByStationId(Long id);

    void deleteByStationId(Long id);
}
